package com.example.demo.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.example.demo.domain.User;
import com.example.demo.mapper.UserMapper;
import com.example.demo.service.UserRemoteService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 用户接口实现
 * @date 2019-4-10 15:17:23
 * @author joker
 */
@Service
@Component
public class UserServiceImpl implements UserRemoteService {

    @Resource
    private UserMapper userMapper;

    @Override
    public User getUserById(Integer id) {
        return userMapper.getUserById(id);
    }

}
